package org.hcyspartnoc.demo.pojo.dto.system;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
public class SysUserModifyStatusDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "用户id不能为空")
    private Integer userId;
    @NotNull(message = "状态不能为空")
    @Min(value = 1, message = "用户状态取值1-2")
    @Max(value = 2, message = "用户状态取值1-2")
    private Integer status;
}
